<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <style type="text/css">
            .col-95 {
                text-align: right;
            }

            .col-5 {
                text-align: left;
            }

            .col-80 {
            }

            .col-20 {
                width: 5%;
            }
        </style>

    </ui:define>

    <ui:define name="content">
        <div style="margin:5px;">
            <p:growl id="msgs" showDetail="false"/>
            <h:form>
                <p:panel header="数据交换监控子系统">
                    <p:fieldset legend="消息服务器信息" toggleable="true" toggleSpeed="500">
                        <h:panelGrid columns="2" cellpadding="10">
                            <p:graphicImage value="/images/dep/activemq.png"/>
                            <h:panelGroup style="font-size: 13px">

                                <h:outputText value="ActiveMQ持久消息表：activemq_msgs"/><br/>
                                <h:outputText value="ActiveMQ操作日志表：dep_mq_log"/><br/>
                            </h:panelGroup>
                        </h:panelGrid>
                    </p:fieldset>
                    <br/>
                    <p:ajaxStatus style="height:20px;text-align:center">
                        <f:facet name="start">
                            <h:graphicImage value="/images/ajaxloadingbar.gif"/>
                        </f:facet>
                        <f:facet name="complete">
                            <h:outputText value=""/>
                        </f:facet>
                    </p:ajaxStatus>
                    <p:fieldset legend="操作日志表信息" toggleable="true" toggleSpeed="500">
                         <br/>
                        <p:menubar>
                            <p:menuitem type="push" value="删除所选项" icon="ui-icon ui-icon-close"
                                        action="#{depmqlogAction.delRecords}" update="msgs,pdt" ajax="true"/>
                        </p:menubar>
                        <p:dataTable id="pdt" style="width:100%;"
                                     dynamic="true" selection="#{depmqlogAction.selectedRecords}"
                                     value="#{depmqlogAction.logList}" var="record"
                                     paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                     paginator="true" rows="10" paginatorPosition="bottom"
                                     rowsPerPageTemplate="100,50,30,10,5"
                                     emptyMessage="数据记录为空...">
                            <p:column selectionMode="multiple"/>
                            <p:column headerText="操作人员ID" style="text-align:center">
                                <h:outputText value="#{record.operid}"/>
                            </p:column>
                            <p:column headerText="操作人员姓名" style="text-align:left">
                                <h:outputText value="#{record.opernam}"/>
                            </p:column>
                            <p:column headerText="操作时间" style="text-align:center">
                                <h:outputText value="#{record.operdat}">
                                        <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" timeZone="GMT+8"/>
                                </h:outputText>
                            </p:column>
                            <p:column headerText="操作" style="text-align:center">
                                <h:outputText value="#{record.action}"/>
                            </p:column>

                        </p:dataTable>

                    </p:fieldset>
                </p:panel>
            </h:form>
        </div>
    </ui:define>

</ui:composition>